#ifndef GAMELEVELLAYER_H
#define GAMELEVELLAYER_H

#include <cocos2d.h>
#include "player.h"
#include <list>

USING_NS_CC;

using std::list;

class GameLevelLayer : public Layer
{
public:
    static Scene* createScene();
    virtual bool init(void);
    void update(float);
    void checkCollision(void);
    void updateObjects(float);
    CREATE_FUNC(GameLevelLayer)
    void setViewpointCenter(Vec2 pos);
private:
    Player* player = NULL;
    Camera* camera = NULL;
    TMXTiledMap* curLevelMap = NULL;
    list<Sprite*> objList;
};

#endif // GAMELEVELLAYER_H
